package org.jeecg.modules.demo.com.kunpeng.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.demo.com.kunpeng.entity.OaStep;
import org.jeecg.modules.demo.com.kunpeng.mapper.OaStepMapper;
import org.jeecg.modules.demo.com.kunpeng.service.IOaStepService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
@Slf4j
public class OaStepServiceImpl extends ServiceImpl<OaStepMapper, OaStep> implements IOaStepService {

    @Autowired
    private OaStepMapper oaStepMapper;


    /**
     * 根据actionId获取项目阶段
     * @param actionId
     * @return
     */
    @Override
    public List<String> listOaStepById(Integer actionId) {
        List<String> projectPhases = oaStepMapper.listOaStepById(actionId);
        return projectPhases;
    }
}
